home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Mail / pine3.92 / pine / makefile.gen < prev    next >
Makefile  |  1996-03-14  |  5KB  |  148 lines

  1. # $Id: makefile.gen,v 4.25 1996/03/15 07:13:42 hubert Exp $
  2. #
  3. #            T H E    P I N E    M A I L   S Y S T E M
  4. #
  5. #   Laurence Lundblade and Mike Seibel
  6. #   Networks and Distributed Computing
  7. #   Computing and Communications
  8. #   University of Washington
  9. #   Administration Building, AG-44
  10. #   Seattle, Washington, 98195, USA
  11. #   Internet: lgl@CAC.Washington.EDU
  12. #             mikes@CAC.Washington.EDU
  13. #
  14. #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  15. #
  16. #
  17. #   Pine and Pico are registered trademarks of the University of Washington.
  18. #   No commercial use of these trademarks may be made without prior written
  19. #   permission of the University of Washington.
  20. #
  21. #   Pine, Pico, and Pilot software and its included text are Copyright
  22. #   1989-1996 by the University of Washington.
  23. #
  24. #   The full text of our legal notices is contained in the file called
  25. #   CPYRIGHT, included with this distribution.
  26. #
  27. #
  28. #   Pine is in part based on The Elm Mail System:
  29. #    ***********************************************************************
  30. #    *  The Elm Mail System  -  Revision: 2.13                             *
  31. #    *                                                                     *
  32. #    *             Copyright (c) 1986, 1987 Dave Taylor               *
  33. #    *             Copyright (c) 1988, 1989 USENET Community Trust    *
  34. #    ***********************************************************************
  35. #
  36. #
  37.  
  38.  
  39. #
  40. #     Generic makefile for the Pine mail system
  41. #       A good place to start a new port
  42. #       (There is one GEN and several gen's that should be replaced
  43. #        with the actual 3-letter system code.)
  44. #
  45. #   Most commonly fiddled flags for compiler.
  46. #   Uncomment the setttings desired here
  47. #
  48. RM=          rm -f
  49. LN=          ln -s
  50. MAKE=        make
  51. OPTIMIZE=    # -O
  52. PROFILE=     # -pg
  53. DEBUG=       -g -DDEBUG
  54.  
  55. IMAPDIR=     ../c-client
  56. PICODIR=     ../pico
  57.  
  58. STDLIBES=    -ltermlib
  59. LOCLIBES=    $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
  60. LIBES=       $(EXTRALIBES) $(LOCLIBES) $(STDLIBES)
  61.  
  62. STDCFLAGS=   -DGEN -DSYSTYPE=\"GEN\" -DMOUSE
  63. CFLAGS=      $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
  64.  
  65. obj=    addrbook.o adrbklib.o args.o context.o filter.o \
  66.     folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
  67.     mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
  68.     reply.o screen.o send.o signals.o status.o strings.o ttyin.o \
  69.     ttyout.o os.o
  70.  
  71. cfiles= addrbook.c adrbklib.c args.c context.c filter.c \
  72.     folder.c help.c helptext.c imap.c init.c mailcap.c mailcmd.c \
  73.     mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
  74.     reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
  75.     ttyout.c os.c
  76.  
  77. pine:  $(obj) $(LOCLIBES)
  78.     echo "char datestamp[]="\"`date`\"";" > date.c
  79.     echo "char hoststamp[]="\"`hostname`\"";" >> date.c
  80.     $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(obj) date.c $(LIBES)
  81.  
  82. # this is not part of pine
  83. pine-use:    pine-use.c
  84.     $(CC) -o pine-use pine-use.c
  85.  
  86. clean:
  87.     $(RM) *.o os.h os.c helptext.c helptext.h
  88.     cd osdep; make clean; cd ..
  89.  
  90.  
  91. HEADERS= headers.h pine.h os.h helptext.h context.h \
  92.       $(IMAPDIR)/mail.h $(IMAPDIR)/osdep.h
  93.  
  94. addrbook.o:    addrbook.c  $(HEADERS) adrbklib.h $(PICODIR)/pico.h
  95. adrbklib.o:     adrbklib.c  $(HEADERS) adrbklib.h
  96. args.o:        args.c      $(HEADERS)
  97. context.o:    context.c   $(HEADERS) $(IMAPDIR)/misc.h
  98. filter.o:    filter.c    $(HEADERS) $(PICODIR)/pico.h
  99. folder.o:    folder.c    $(HEADERS)
  100. help.o:        help.c      $(HEADERS)
  101. helptext.o:    helptext.c
  102. imap.o:            imap.c      $(HEADERS)
  103. init.o:        init.c      $(HEADERS)
  104. mailcap.o:    mailcap.c   $(HEADERS)
  105. mailcmd.o:    mailcmd.c   $(HEADERS) $(PICODIR)/pico.h
  106. mailindx.o:    mailindx.c  $(HEADERS)
  107. mailpart.o:    mailpart.c  $(HEADERS)
  108. mailview.o:    mailview.c  $(HEADERS)
  109. newmail.o:    newmail.c   $(HEADERS)
  110. os.o:        os.c         $(HEADERS)
  111. other.o:    other.c     $(HEADERS) $(PICODIR)/pico.h
  112. pine.o:        pine.c      $(HEADERS)
  113. reply.o:    reply.c     $(HEADERS)
  114. screen.o:    screen.c    $(HEADERS)
  115. send.o:            send.c      $(HEADERS) $(IMAPDIR)/smtp.h $(PICODIR)/pico.h
  116. signals.o:    signals.c   $(HEADERS)
  117. status.o:    status.c    $(HEADERS)
  118. strings.o:    strings.c   $(HEADERS)
  119. ttyin.o:    ttyin.c     $(HEADERS)
  120. ttyout.o:    ttyout.c    $(HEADERS)
  121.  
  122. os.h:    osdep/os-gen.h
  123.     $(RM) os.h
  124.     $(LN) osdep/os-gen.h os.h
  125.  
  126. helptext.c:    pine.hlp
  127.         ./cmplhelp.sh  < pine.hlp > helptext.c
  128.  
  129. helptext.h:    pine.hlp
  130.         ./cmplhlp2.sh  < pine.hlp > helptext.h
  131.  
  132. os.c:    osdep/os-gen.c
  133.     $(RM) os.c
  134.     $(LN) osdep/os-gen.c os.c
  135.  
  136. # os.c is derived from several files in the osdep sub-directory.
  137. # The dependencies here will be different for each port.
  138. osdep/os-gen.c:    osdep/bld_path osdep/canacces osdep/canonicl \
  139.         osdep/chnge_pw osdep/coredump osdep/creatdir \
  140.         osdep/diskquot osdep/domnames osdep/err_desc \
  141.         osdep/expnfldr osdep/fgetpos osdep/filesize osdep/fltrname \
  142.         osdep/fnexpand osdep/header osdep/hostname \
  143.         osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
  144.         osdep/print osdep/pw_stuff osdep/readfile osdep/debuging \
  145.         osdep/rename osdep/srandom.dum osdep/tempfile osdep/tempnam \
  146.         osdep/sendmail osdep/execview osdep/writ_dir osdep/os-gen.ic
  147.     cd osdep; $(MAKE) includer os-gen.c; cd ..
  148.